package com.sh.business.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sh.business.domain.UserFundDetail;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.sh.common.excel.annotation.ExcelDictFormat;
import com.sh.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 用户资产明细视图对象 bms_user_fund_detail
 *
 * @author ruoyi
 * @date 2024-10-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = UserFundDetail.class)
public class UserFundDetailVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 用户id
     */
    @ExcelProperty(value = "用户id")
    private Long userId;

    /**
     * 描述
     */
    @ExcelProperty(value = "描述")
    private String describes;

    /**
     * 资产类型 1、算力 2、usdt 3、aleo
     */
    @ExcelProperty(value = "资产类型 1、算力 2、usdt 3、aleo", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "biz_found_type")
    private Integer type;

    /**
     * 转入转出标识 -1：转出 1：转入
     */
    @ExcelProperty(value = "转入转出标识 -1：转出 1：转入", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "biz_transfer_flag")
    private Integer transferFlag;

    /**
     * 订单编号
     */
    @ExcelProperty(value = "订单编号")
    private String orderNo;

    /**
     * 变动前
     */
    @ExcelProperty(value = "变动前")
    private BigDecimal pointBefore;

    /**
     * 数量
     */
    @ExcelProperty(value = "数量")
    private BigDecimal amount;

    /**
     * 变动后
     */
    @ExcelProperty(value = "变动后")
    private BigDecimal pointAfter;

    /**
     * hash
     */
    @ExcelProperty(value = "hash")
    private String txHash;

    /**
     * 存证时间
     */
    @ExcelProperty(value = "存证时间")
    private Date txTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    private Date createTime;
}
